/*
 * XML Type:  TransferProfile
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.TransferProfile
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML TransferProfile(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class TransferProfileImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.TransferProfile
{
    
    public TransferProfileImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PROCDAYSOFF$0 = 
        new javax.xml.namespace.QName("", "PROCDAYSOFF");
    private static final javax.xml.namespace.QName PROCENDTM$2 = 
        new javax.xml.namespace.QName("", "PROCENDTM");
    private static final javax.xml.namespace.QName CANSCHED$4 = 
        new javax.xml.namespace.QName("", "CANSCHED");
    private static final javax.xml.namespace.QName CANRECUR$6 = 
        new javax.xml.namespace.QName("", "CANRECUR");
    private static final javax.xml.namespace.QName CANMODXFERS$8 = 
        new javax.xml.namespace.QName("", "CANMODXFERS");
    private static final javax.xml.namespace.QName CANMODMDLS$10 = 
        new javax.xml.namespace.QName("", "CANMODMDLS");
    private static final javax.xml.namespace.QName MODELWND$12 = 
        new javax.xml.namespace.QName("", "MODELWND");
    private static final javax.xml.namespace.QName DAYSWITH$14 = 
        new javax.xml.namespace.QName("", "DAYSWITH");
    private static final javax.xml.namespace.QName DFLTDAYSTOPAY$16 = 
        new javax.xml.namespace.QName("", "DFLTDAYSTOPAY");
    
    
    /**
     * Gets array of all "PROCDAYSOFF" elements
     */
    public net.ofx.types.x2003.x04.DaysEnum.Enum[] getPROCDAYSOFFArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PROCDAYSOFF$0, targetList);
            net.ofx.types.x2003.x04.DaysEnum.Enum[] result = new net.ofx.types.x2003.x04.DaysEnum.Enum[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = (net.ofx.types.x2003.x04.DaysEnum.Enum)((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getEnumValue();
            return result;
        }
    }
    
    /**
     * Gets ith "PROCDAYSOFF" element
     */
    public net.ofx.types.x2003.x04.DaysEnum.Enum getPROCDAYSOFFArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROCDAYSOFF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (net.ofx.types.x2003.x04.DaysEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "PROCDAYSOFF" elements
     */
    public net.ofx.types.x2003.x04.DaysEnum[] xgetPROCDAYSOFFArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PROCDAYSOFF$0, targetList);
            net.ofx.types.x2003.x04.DaysEnum[] result = new net.ofx.types.x2003.x04.DaysEnum[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "PROCDAYSOFF" element
     */
    public net.ofx.types.x2003.x04.DaysEnum xgetPROCDAYSOFFArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DaysEnum target = null;
            target = (net.ofx.types.x2003.x04.DaysEnum)get_store().find_element_user(PROCDAYSOFF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (net.ofx.types.x2003.x04.DaysEnum)target;
        }
    }
    
    /**
     * Returns number of "PROCDAYSOFF" element
     */
    public int sizeOfPROCDAYSOFFArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PROCDAYSOFF$0);
        }
    }
    
    /**
     * Sets array of all "PROCDAYSOFF" element
     */
    public void setPROCDAYSOFFArray(net.ofx.types.x2003.x04.DaysEnum.Enum[] procdaysoffArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(procdaysoffArray, PROCDAYSOFF$0);
        }
    }
    
    /**
     * Sets ith "PROCDAYSOFF" element
     */
    public void setPROCDAYSOFFArray(int i, net.ofx.types.x2003.x04.DaysEnum.Enum procdaysoff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROCDAYSOFF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setEnumValue(procdaysoff);
        }
    }
    
    /**
     * Sets (as xml) array of all "PROCDAYSOFF" element
     */
    public void xsetPROCDAYSOFFArray(net.ofx.types.x2003.x04.DaysEnum[]procdaysoffArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(procdaysoffArray, PROCDAYSOFF$0);
        }
    }
    
    /**
     * Sets (as xml) ith "PROCDAYSOFF" element
     */
    public void xsetPROCDAYSOFFArray(int i, net.ofx.types.x2003.x04.DaysEnum procdaysoff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DaysEnum target = null;
            target = (net.ofx.types.x2003.x04.DaysEnum)get_store().find_element_user(PROCDAYSOFF$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(procdaysoff);
        }
    }
    
    /**
     * Inserts the value as the ith "PROCDAYSOFF" element
     */
    public void insertPROCDAYSOFF(int i, net.ofx.types.x2003.x04.DaysEnum.Enum procdaysoff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(PROCDAYSOFF$0, i);
            target.setEnumValue(procdaysoff);
        }
    }
    
    /**
     * Appends the value as the last "PROCDAYSOFF" element
     */
    public void addPROCDAYSOFF(net.ofx.types.x2003.x04.DaysEnum.Enum procdaysoff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROCDAYSOFF$0);
            target.setEnumValue(procdaysoff);
        }
    }
    
    /**
     * Removes the ith "PROCDAYSOFF" element
     */
    public void removePROCDAYSOFF(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PROCDAYSOFF$0, i);
        }
    }
    
    /**
     * Gets the "PROCENDTM" element
     */
    public java.lang.String getPROCENDTM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROCENDTM$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PROCENDTM" element
     */
    public net.ofx.types.x2003.x04.TimeType xgetPROCENDTM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TimeType target = null;
            target = (net.ofx.types.x2003.x04.TimeType)get_store().find_element_user(PROCENDTM$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "PROCENDTM" element
     */
    public void setPROCENDTM(java.lang.String procendtm)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROCENDTM$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROCENDTM$2);
            }
            target.setStringValue(procendtm);
        }
    }
    
    /**
     * Sets (as xml) the "PROCENDTM" element
     */
    public void xsetPROCENDTM(net.ofx.types.x2003.x04.TimeType procendtm)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TimeType target = null;
            target = (net.ofx.types.x2003.x04.TimeType)get_store().find_element_user(PROCENDTM$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TimeType)get_store().add_element_user(PROCENDTM$2);
            }
            target.set(procendtm);
        }
    }
    
    /**
     * Gets the "CANSCHED" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANSCHED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANSCHED$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANSCHED" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANSCHED()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANSCHED$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANSCHED" element
     */
    public void setCANSCHED(net.ofx.types.x2003.x04.BooleanType.Enum cansched)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANSCHED$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANSCHED$4);
            }
            target.setEnumValue(cansched);
        }
    }
    
    /**
     * Sets (as xml) the "CANSCHED" element
     */
    public void xsetCANSCHED(net.ofx.types.x2003.x04.BooleanType cansched)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANSCHED$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANSCHED$4);
            }
            target.set(cansched);
        }
    }
    
    /**
     * Gets the "CANRECUR" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANRECUR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANRECUR$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANRECUR" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANRECUR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANRECUR$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANRECUR" element
     */
    public void setCANRECUR(net.ofx.types.x2003.x04.BooleanType.Enum canrecur)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANRECUR$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANRECUR$6);
            }
            target.setEnumValue(canrecur);
        }
    }
    
    /**
     * Sets (as xml) the "CANRECUR" element
     */
    public void xsetCANRECUR(net.ofx.types.x2003.x04.BooleanType canrecur)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANRECUR$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANRECUR$6);
            }
            target.set(canrecur);
        }
    }
    
    /**
     * Gets the "CANMODXFERS" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANMODXFERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANMODXFERS$8, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANMODXFERS" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANMODXFERS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANMODXFERS$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANMODXFERS" element
     */
    public void setCANMODXFERS(net.ofx.types.x2003.x04.BooleanType.Enum canmodxfers)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANMODXFERS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANMODXFERS$8);
            }
            target.setEnumValue(canmodxfers);
        }
    }
    
    /**
     * Sets (as xml) the "CANMODXFERS" element
     */
    public void xsetCANMODXFERS(net.ofx.types.x2003.x04.BooleanType canmodxfers)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANMODXFERS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANMODXFERS$8);
            }
            target.set(canmodxfers);
        }
    }
    
    /**
     * Gets the "CANMODMDLS" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANMODMDLS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANMODMDLS$10, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANMODMDLS" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANMODMDLS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANMODMDLS$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANMODMDLS" element
     */
    public void setCANMODMDLS(net.ofx.types.x2003.x04.BooleanType.Enum canmodmdls)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANMODMDLS$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANMODMDLS$10);
            }
            target.setEnumValue(canmodmdls);
        }
    }
    
    /**
     * Sets (as xml) the "CANMODMDLS" element
     */
    public void xsetCANMODMDLS(net.ofx.types.x2003.x04.BooleanType canmodmdls)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANMODMDLS$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANMODMDLS$10);
            }
            target.set(canmodmdls);
        }
    }
    
    /**
     * Gets the "MODELWND" element
     */
    public java.lang.String getMODELWND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MODELWND$12, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MODELWND" element
     */
    public net.ofx.types.x2003.x04.DayspanType xgetMODELWND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(MODELWND$12, 0);
            return target;
        }
    }
    
    /**
     * Sets the "MODELWND" element
     */
    public void setMODELWND(java.lang.String modelwnd)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MODELWND$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MODELWND$12);
            }
            target.setStringValue(modelwnd);
        }
    }
    
    /**
     * Sets (as xml) the "MODELWND" element
     */
    public void xsetMODELWND(net.ofx.types.x2003.x04.DayspanType modelwnd)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(MODELWND$12, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DayspanType)get_store().add_element_user(MODELWND$12);
            }
            target.set(modelwnd);
        }
    }
    
    /**
     * Gets the "DAYSWITH" element
     */
    public java.lang.String getDAYSWITH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAYSWITH$14, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DAYSWITH" element
     */
    public net.ofx.types.x2003.x04.DayspanType xgetDAYSWITH()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DAYSWITH$14, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DAYSWITH" element
     */
    public void setDAYSWITH(java.lang.String dayswith)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAYSWITH$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAYSWITH$14);
            }
            target.setStringValue(dayswith);
        }
    }
    
    /**
     * Sets (as xml) the "DAYSWITH" element
     */
    public void xsetDAYSWITH(net.ofx.types.x2003.x04.DayspanType dayswith)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DAYSWITH$14, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DayspanType)get_store().add_element_user(DAYSWITH$14);
            }
            target.set(dayswith);
        }
    }
    
    /**
     * Gets the "DFLTDAYSTOPAY" element
     */
    public java.lang.String getDFLTDAYSTOPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DFLTDAYSTOPAY$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DFLTDAYSTOPAY" element
     */
    public net.ofx.types.x2003.x04.DayspanType xgetDFLTDAYSTOPAY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DFLTDAYSTOPAY$16, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DFLTDAYSTOPAY" element
     */
    public void setDFLTDAYSTOPAY(java.lang.String dfltdaystopay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DFLTDAYSTOPAY$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DFLTDAYSTOPAY$16);
            }
            target.setStringValue(dfltdaystopay);
        }
    }
    
    /**
     * Sets (as xml) the "DFLTDAYSTOPAY" element
     */
    public void xsetDFLTDAYSTOPAY(net.ofx.types.x2003.x04.DayspanType dfltdaystopay)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DayspanType target = null;
            target = (net.ofx.types.x2003.x04.DayspanType)get_store().find_element_user(DFLTDAYSTOPAY$16, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DayspanType)get_store().add_element_user(DFLTDAYSTOPAY$16);
            }
            target.set(dfltdaystopay);
        }
    }
}
